device tree: correctly ignore unit-address when matching nodes by name
authorDavid Vrabel <david.vrabel@citrix.com>
Thu, 22 Mar 2012 14:26:44 +0000 (14:26 +0000)
committerDavid Vrabel <david.vrabel@citrix.com>
Thu, 22 Mar 2012 14:26:44 +0000 (14:26 +0000)
commit1140ce1534c70bcc1b87d6f9caa4eebead87e5de
treeae0beb3ddf75e12674a23c09e8af24631e5b7d72
parent6f8f42c32fd2119ceda62aa3e812c302c633712d
device tree: correctly ignore unit-address when matching nodes by name

When matching node by their name, correctly ignore the unit address
(@...) part of the name.  Previously, a "memory-controller" node would
be incorrectly matched as a "memory" node.

Signed-off-by: David Vrabel <david.vrabel@citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Committed-by: Ian Campbell <ian.campbell@citrix.com>
xen/common/device_tree.c